package com.future.config.exception;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 业务异常
 *
 * @author shiyong
 * 2019-11-11 16:53
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class BusinessException extends RuntimeException {

    /**
     * 异常代码
     */
    private String errorCode;

    /**
     * 异常信息
     */
    private String message;

    public BusinessException(String message) {
        this.message = message;
    }
}
